<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>

</html>
<script>
    class Tank {
        constructor() {
            this.dom = 0
            this.color = 'red'
            this.run()
        }
        run() {
            console.log('我是class继承的，我爹是大坦克');
        }
    }
    class son extends Tank{}
    let a=new son()
    console.log(a);

</script>